package com.cc.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cc.pms.domain.TeamMember;
import com.cc.pms.domain.vo.TeamMemberVo;
import com.cc.common.core.domain.R;

import java.util.List;

/**
 * <p>
 * 队伍成员表 服务类
 * </p>
 *
 * @author corleone
 * @since 2025-04-19
 */
public interface ITeamMemberService extends IService<TeamMember> {


    List<TeamMemberVo> queryTeamMemberVo(Long teamId);

    void removeByTeamId(Long teamId);

    R<Boolean> removeMembers(Long teamId , Long[] memberIds);

    void setCaptain(TeamMember teamMember);

    R<Boolean> exitTeam(Long teamId);

    R<Boolean> forcingMemberExitTeam(Long teamId , Long userId);

    void addMember(TeamMember member);

    R<Long> joinTeam(Long teamId);

    R<Long> joinTeam(TeamMember member);

    int queryManageTeamCount(Long userId);
}
